package cn.topevery.garden.wapi.controller;


import com.topevery.sdk.sync.BaseSyncController;
import com.topevery.sdk.sync.service.ISyncDataHandle;
import com.topevery.sdk.sync.web.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fmp/")
public class DataHandleController extends BaseSyncController {

    @Autowired
    ISyncDataHandle dataHandle;

    @GetMapping(value = "/loginByToken")
    public JsonResult<?> loginByToken(@RequestParam(name = "token") String token) {
//        return JsonResult.ok(dataHandle.loginByToken(token, super.properties));
        return null;
    }

    @GetMapping("/index")
    public String index() {
        return "Index.";
    }
}
